#include<bits/stdc++.h>
#define int long long 
#define endl "\n"

using namespace std;

int n, m;
char a[120][120];

bool checkHH(int i, int j, char x) {
	int t = 0;
	for(; j <= m; j ++ ) {
		if(a[i][j] == x) {
			t ++ ;
		} else {
			return t >= 4;
		}
	}
	return t >= 4;
}
bool checkLL(int i, int j, char x) {
	int t = 0;
	for(; i <= n; i ++ ) {
		if(a[i][j] == x) {
			t ++ ;
			if(t == 4) {
				return true;
			}
		} else {
			return t >= 4;
		}
	}
	return t >= 4;
}

bool checkDD1(int i, int j, char x) {
	int t = 0;
	while(i <= n && j <= m) {
		if(a[i][j] == x ) {
			t ++ ;
			if(t == 4) {
				return true;
			}
		} else {
			return false;
		}
		i ++ ;
		j ++ ;
	}
	return t >= 4;
}

bool checkDD2(int i, int j, char x) {
	int t = 0;
	while(i >= 1 && j >= 1) {
		if(a[i][j] == x ) {
			t ++ ;
			if(t == 4) {
				return true;
			}
		} else {
			return t >= 4;
		}
		i ++ ;
		j -- ;
	}
	return t >= 4;
}
signed main() {
	cin >> n >> m;
	for(int i = 1; i <= n; i ++  ){
		string s;
		cin >> s;
		for(int j = 1; j <= m; j ++ ) {
			a[i][j] = s[j - 1];
		}
	}
	for(int i = 1; i <= n; i ++ ) {
		for(int j = 1; j <= m; j ++ ) {
			if(checkHH(i, j, 'r')) {
				cout << "kou" << endl;
				return 0;
			}
			if(checkHH(i, j, 'p')) {
				cout << "yukari" << endl;
				return 0;
			}
		}
	}
	for(int i = 1; i <= m; i ++ ) {
		for(int j = 1; j <= n; j ++ ) {
			if(checkLL(j, i, 'r')) {
				cout << "kou" << endl;
				return 0;
			}
			if(checkLL(j, i, 'p')) {
				cout << "yukari" << endl;
				return 0;
			}
		}
	}
	for(int i = 1; i <= n; i ++  ){
		for(int j = 1; j <= m; j ++ ) {
			if(checkDD1(i, j, 'r')) {
				cout << "kou" << endl;
				return 0;
			} 
			if(checkDD1(i, j, 'p')) {
				cout << "yukari" << endl;
				return 0;
			}
		}
	}
	for(int i = 1; i <= n; i ++  ){
		for(int j = 1; j <= m; j ++ ) {
			if(checkDD2(i, j, 'r')) {
				cout << "kou" << endl;
				return 0;
			} 
			if(checkDD2(i, j, 'p')) {
				cout << "yukari" << endl;
				return 0;
			}
		}
	}
	cout << "to be continued" << endl;
	return 0;
}
